package com.mac.intellect_flow.admin.controller.system;


import com.mac.intellect_flow.framework.config.MacConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页
 *
 * @author mac
 */
@RestController
public class SysIndexController {

    @Autowired
    private MacConfig macConfig;

    /**
     * 访问首页，提示语
     */
    @GetMapping("/")
    public String index() {
        return String.format("欢迎使用%s后台管理框架，当前版本：v%s，请通过前端地址访问。", macConfig.getName(), macConfig.getVersion());
    }
}
